package com.ym.ms;

import com.ym.paas.ApplicationInitializer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zhang
 */
@SpringBootApplication
@ServletComponentScan
@EnableAutoConfiguration
@ComponentScan(basePackages={"com.ym.ms"})
@MapperScan("com.ym.ms.mapper")
public class ServerApp {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(ServerApp.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.addInitializers(new ApplicationInitializer());
        app.run(args);
        System.out.println("started");
    }
}
